//
//  ZCBaseRequestManager.h
//  UniversalApp
//
//  Created by 凯朱 on 2019/6/11.
//  Copyright © 2019 徐阳. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSUInteger, ZCRequestMethod) {
    GET = 0, /**/
    POST = 1 /**/
};

typedef void(^ZCRequiredFinished)(BOOL isSuccessed,id result,NSString *code,NSString *message);

@interface ZCBaseRequestManager : NSObject

/**
 发起网络请求

 @param url url
 @param method 请求方式
 @param params 参数
 @param finished 完成回调
 */
+(void)requestWithUrl:(NSString *)url method:(ZCRequestMethod)method params:(NSDictionary *)params finished:(ZCRequiredFinished)finished;

+(void)requestJsonWithUrl:(NSString *)url method:(ZCRequestMethod)method params:(NSDictionary *)params finished:(ZCRequiredFinished)finished;

@end

NS_ASSUME_NONNULL_END
